//
//  AddProduct.h
//  LazyCat
//
//  Created by Abner on 16/9/23.
//  Copyright © 2016年 zhanshu. All rights reserved.
//

#import <Foundation/Foundation.h>

/**
 *  @"添加商品"或者@“编辑商品”用的模型
 */
@interface AddProduct : NSObject
/** 0：上架出售；1：加入仓库,2:保存 */
@property(nonatomic,copy)NSString *actiontype;
/** 商品条码 */
@property(nonatomic,copy)NSString *barcode;
/** 分类id */
@property(nonatomic,copy)NSString *categoryid;
/** 分类名称 */
@property(nonatomic,copy)NSString *categoryname;
/** 商品id */
@property(nonatomic,copy)NSString *productid;
/** 商品名称 */
@property(nonatomic,copy)NSString *productname;
/** 排序值（值越大，越排在前） */
@property(nonatomic,copy)NSString *sort;
/** 主图url(暂时没啥用) */
@property(nonatomic,copy)NSString *mainimage;
/** 图片路径url数组 */
@property(nonatomic,strong)NSArray *imagelist;
/** 是否支持快递配送 */
@property(nonatomic,copy)NSString *supportexpress;
/** 是否上架 */
@property(nonatomic,copy)NSString *ispublic;
/** 是否热卖 */
@property(nonatomic,copy)NSString *ishot;
/** 商品简介 */
@property(nonatomic,copy)NSString *sdescription;
/** 规格命名 */
@property(nonatomic,copy)NSString *property;
/** （后台需要）文件目录用 */
@property(nonatomic,copy)NSString *folder;
/** 多规格数组 */
@property(nonatomic,strong)NSMutableArray *productspec;
/** 多属性数组 */
@property(nonatomic,strong)NSMutableArray *productprop;

@property(nonatomic,copy)NSString *shopuser; //店铺名
@property(nonatomic,copy)NSString *r;
@property(nonatomic,copy)NSString *m;
/** 图文详情Url */
@property(nonatomic,copy)NSString *desc_url;
/** 分享url */
@property(nonatomic,copy)NSString *url;
@end

/*
 2016-09-23
 {
 "barcode": "6965555487123",
 "categoryid": "1154",
 "categoryname": "面粉",
 "productid": "3641",
 "productname": "雅庐江西特产九江茶饼520g",
 "sort": "0.00",
 "mainimage": "http://210.14.79.98:8065/uploads/LCatProduct/201603/cabf364f-59b2-49ad-9ee7-39b7d35c8aaf.jpg",
 "imagelist": [],
 "ispublic": "1",
 "ishot": "1",
 "supportexpress": "1",
 "sdescription": "雅庐 江西特产 九江茶饼 内装多种口味 小茶饼点心饼干 520g",
 "property": "重量",
 "folder": "201603",
 "productspec": [],
 "productprop": [],
 "r": "T",
 "m": "success"
 }
*/

@interface LCProductSpec : NSObject
/** 规格id */
@property(nonatomic,copy)NSString *specid;
/** 规格的值（如“芒果味”，“水蜜桃味”） */
@property(nonatomic,copy)NSString *specname;
/** 市场价 */
@property(nonatomic,copy)NSString *marketprice;
/** 成本价 */
@property(nonatomic,copy)NSString *costprice;
/** 销售价 */
@property(nonatomic,copy)NSString *saleprice;
/** 懒猫价 */
@property(nonatomic,copy)NSString *lcatprice;
/** 佣金 */
@property(nonatomic,copy)NSString *commissionprice;
///** 需XX元懒猫券 */
//@property(nonatomic,copy)NSString *extamount;
/** 库存 */
@property(nonatomic,copy)NSString *numstock;
/** 当前规格对应的展示图 */
@property(nonatomic,copy)NSString *mainimage;

/** 本地图片，用来展示 */
@property(nonatomic,strong)UIImage *localImg;


@end

/*
 {
 "specid": "1",
 "specname": "水蜜桃",
 "marketprice": "3.00",
 "costprice": "0.00",
 "saleprice": "0.00",
 "commissionprice": "0.00",
 "numstock": "0.00",
 "mainimage": "http://210.14.79.98:8065/uploads/LCatProduct/201607/f2e104d3-4410-4eba-a5f9-e06e1577603b.jpg"
 },
*/

@interface LCProductProp : NSObject

/** 属性id */
@property(nonatomic,copy)NSString *propertyid;
/** 属性名 */
@property(nonatomic,copy)NSString *propertyname;
/** 属性字符串 */
@property(nonatomic,copy)NSString *propertyvalue;
/** 排序 */
@property(nonatomic,strong)NSString *sort;

@end

/*
 {
 "propertyname": "温度",
 "propertyvalue": "冰镇,常温",
 "sort": "0"
 },
*/